button

Purpose

You could assign a label and an image to a button by the label and image properties. If both are specified, the dir property control which is displayed up front, and the orient property controls whether the layout is horizontal or vertical.Within ZK 5, the file upload has been redesigned so it can be integrated with any widget. For example, The button can now be used to upload a file. In addition to this, the display of the upload status has been enhanced and can be customized easily.

Examples

<z:button label="Left" image="/img/computer.png" width="125px"/>
<z:button label="Right" image="/img/computer.png" dir="reverse" width="125px"/>
<z:button label="Above" image="/img/computer.png" orient="vertical" width="125px"/>
<z:button label="Below" image="/img/computer.png" orient="vertical" dir="reverse" width="125px"/>

Description

Attributes

ZK Official Reference

Component Reference

Show button Component Reference

Java API

Show button Java API